<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/common/topBegin.jsp"%>
 
<%@include file="/WEB-INF/common/topEnd.jsp"%>	
<%@include file="/WEB-INF/common/bodyBegin.jsp"%>
<script>
var tbarOpr = [],queryRole=false,editRole=false;
<c:if test="${my:hasPermission(currentUser.id,'goods','CREATE')}">
tbarOpr.push({
	text : '新增',
	iconCls : 'page_addIcon',
	handler : function() {
		listView.addInit();
	}
});

tbarOpr.push('-');
</c:if>

<c:if test="${my:hasPermission(currentUser.id,'goods','UPDATE')}">
	editRole=true;
	tbarOpr.push({
		text : '修改',
		iconCls : 'page_edit_1Icon',
		handler : function() {
			listView.editInit();
		}
	});
	tbarOpr.push('-');
	tbarOpr.push({
		text : '查看',
		iconCls : 'previewIcon',
		handler : function() {
			listView.show();
		}
	});
</c:if>
<c:if test="${my:hasPermission(currentUser.id,'goods','DELETE')}">
	tbarOpr.push({
		text : '删除',
		iconCls : 'page_delIcon',
		handler : function() {
			listView.deleteItem();
		}
	});
	tbarOpr.push('-');
</c:if>
<c:if test="${my:hasPermission(currentUser.id,'goods','READ')}">
	queryRole=true;
</c:if>

</script>

<div id="table_form_div" style="display: none;">
<table class="table-form" width="100%">
 <tbody>
  <tr>
	       <td width="15%" class="table-th">编码</td>
	       <td class="table-td" width="35%">
	       <span id="safetyCard_code"></span>
	       </td>
	      <td width="15%" class="table-th">名称</td>
	       <td class="table-td" width="35%">
	          <span id="safetyCard_name"></span>
	       </td>
	  </tr>
	   <tr>
	    	<td width="15%" class="table-th">安全卡图片</td>
           <td  colspan="3"  align="center"><br>
	         <img id="safetyCard_path"  style="width: 90%; height: auto;"/>
		</td> 
      </tr>
  </tbody>
  </table>
</div>
<script type="text/javascript" src="${ctx}/js/extjs/ux/Ext.ux.grid.RowActions.js"></script>
<script type="text/javascript" src="${ctx}/js/extjs/ux/ResetDateField.js"></script>
<script type="text/javascript" src="${ctx}/js/app-web/biz/goods/goodsView.js"></script>

<script type="text/javascript" src="${ctx}/js/jquery-1.7.1.min.js"></script>
<%@include file="/WEB-INF/common/bodyEnd.jsp"%>	
